<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>评级宝企业信用报告</title>
<link href="//cdn.bootcss.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript"
	src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="template-native.js" ></script>
	
<style>
.table td{
	border: 1px solid #000;
	min-width: 10%;
	font-size: 13px;
	background:rgba(0, 0, 0, 0.0) none repeat scroll 0 0 !important;
}

body {
	font-family: "微软雅黑";
	background:url(pjb.png) 0 0 repeat;
	color: #000000;
	
}

p{
	font-size: 13px;
	color: #000;
}
#tj td{
	border: 0px solid ;
}
h2,h3{
	color:#555;
}
</style>
</head>
<body>
	<div class="container ">
	<center>
		<div id="p_ysBusinessCircles"></div>
		<div id="p_companyRiskProfile"></div>
		<div id="p_ccorpAccountCheck"></div>
		<div id="p_corpTradeReport"></div>

		<div id="inputs">
			<form id="tjxx">

				<table id="tj" class="table table-bordered" style="width: 30%;">
					<h2>请选择查询内容</h2>
					<tr>
						<td><label><input name="Fruit" type="checkbox" id="b1_B" checked="checked"
								value="ysBusinessCircles" />B-1：企业工商注册信息查询</label></td>
					</tr>

					<tr>
						<td><label><input name="Fruit" type="checkbox" id="b4_B"
								value="companyRiskProfile" />B-401：企业涉法涉诉信息查询</label></td>
					</tr>
					<tr>
						<td><label><input name="Fruit" type="checkbox" id="b402_B"
								value="ccorpIdList" />B-402:涉法涉诉精确查询:</label>
						</td>
					</tr>
					<tr>
						<td><label><input name="Fruit" type="checkbox" id="b5_B"
								value="ccorpAccountCheck" />B-5：企业账号认证</label></td>
					</tr>
					<tr>
						<td><label><input name="Fruit" type="checkbox"  id="b6_B"
								value="corpTradeReport" />B-6：企业POS交易报告（6个月）</label></td>
					</tr>
				</table>
				<table id="tj">
					<tr id="comName_b">
						<td><p>企业名称:</p></td>
						<td><p><input type="text" id="comName" class = "form-control" /></p></td>
					</tr>
					<tr id="keyType_b">
						<td><p>企业类型:</p></td>
						<td><p><input type="text" id="keyType" class = "form-control" value="2"/></p></td>
					</tr>
					<tr  >
						<td style="display:none" id="typeId"><p>查询类型ID</p></td>
						<td >
						<select class="form-control" id="idlist" style="display:none" >
							<option selected="selected" value="falses">===请选择===</option>
						  <option value="cpws:">裁判文书</option>
						  <option value="zxgg:">执行公告</option>
						  <option value="sxgg:">失信公告</option>
						  <option value="ktgg:">开庭公告</option>
						  <option value="fygg:">法院公告</option>
						  <option value="wdhmd:">网贷黑名单</option>
						  <option value="ajlc:">案件流程</option>
						</select>
						<p style="display:none" id="idgg_b"><input type="text" id="idgg" class = "form-control" placeholder="请输入公告ID" /></p>
						</td>
					</tr>
					<tr style="display:none" id="card_b">
						<td><p>银行卡号:</td>
						<td><p><input type="text" id="card" class = "form-control" /></p></td>
					</tr>
					<tr style="display:none" id="bankCode_b">
						<td><p>银联机构号:</td>
						<td><p><input type="text" id="bankCode" class = "form-control" /></p></td>
					</tr>
					<tr style="display:none">
						<td><p>入帐金额:</td>
						<td><p><input type="text" id="amount" class = "form-control"></p></td>
					</tr>
				</table>
			</form>
			<button onclick="Submitdata()" class="btn btn-info btn-xs">提交</button>
		</div>

		<div id="tdcenter">
			<script type="text/html" id="ysBusinessCircles">
			<br /><br />
			<div>
				<h2>企业信用报告</h2>
			</div>
			<br />
			<div>
				<h2> B-1: 企业工商注册信息查询 </h2>
			</div>
			<br />
			<div>
				<h3> 1、企业法人信息 </h3>
				<table class="table table-bordered table-condensed">
					<tr>
						<td>企业（机构）类型</td>
						<td>注册资本币种</td>
						<td>注册号</td>
						<td>企业（机构）名称</td>
						<td>企业状态</td>
						<td>注册资本（万元）</td>
						<td>查询人姓名</td>
					</tr>
					<% for(var i in ysBusinessCircles.data.ryposfr){ %>
					<tr>
						<td> <%=ysBusinessCircles.data.ryposfr[i].eNTTYPE %> </td>
						<td> <%=ysBusinessCircles.data.ryposfr[i].rEGCAPCUR %> </td>
						<td> <%=ysBusinessCircles.data.ryposfr[i].rEGNO %> </td>
						<td> <%=ysBusinessCircles.data.ryposfr[i].eNTNAME %> </td>
						<td> <%=ysBusinessCircles.data.ryposfr[i].eNTSTATUS %> </td>
						<td> <%=ysBusinessCircles.data.ryposfr[i].rEGCAP %> </td>
						<td> <%=ysBusinessCircles.data.ryposfr[i].rYNAME %> </td>
					</tr>
					<% } %>
				</table>
			</div>

			<div>
				<h3> 2、股东信息（高管信息）</h3>
				<table class="table table-bordered table-condensed">
					<tr>
						<td>姓名</td>
						<td>职位</td>
						<td>性别</td>
						<td>总人数 </td>
						<td>出生年份</td>
					</tr>
					<% for(var i in ysBusinessCircles.data.person){ %>
					<tr>
						<td><%=ysBusinessCircles.data.person[i].pERNAME %> </td>
						<td> <%=ysBusinessCircles.data.person[i].pOSITION %> </td>
						<td> <%=ysBusinessCircles.data.person[i].sEX %> </td>
						<td> <%=ysBusinessCircles.data.person[i].pERSONAMOUNT %></td>
						<td></td>
					</tr>
					<% } %>
				</table>
			</div>
			<div>
				<h3> 3、股权出质历史信息</h3>
				<table class="table table-bordered">
					<tr>
						<td>质权人姓名</td>
						<td>出质人类别</td>
						<td>出质金额</td>
						<td>出质备案日期 </td>
						<td>出质审批部门</td>
						<td>出质批准日期</td>
						<td>出质截至日期</td>
					</tr>
					<% for(var i in ysBusinessCircles.data.sharesImpawn){  %>
					<tr>
						<td> <%=ysBusinessCircles.data.sharesImpawn[i].iMPORG %> </td>
						<td> <%=ysBusinessCircles.data.sharesImpawn[i].iMPORGTYPE %> </td>
						<td> <%=ysBusinessCircles.data.sharesImpawn[i].iMPAM %> </td>
						<td> <%=ysBusinessCircles.data.sharesImpawn[i].iMPONRECDATE %> </td>
						<td> <%=ysBusinessCircles.data.sharesImpawn[i].iMPEXAEEP %> </td>
						<td> <%=ysBusinessCircles.data.sharesImpawn[i].iMPSANDATE %> </td>
						<td> <%=ysBusinessCircles.data.sharesImpawn[i].iMPTO %> </td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 4、企业主要管理人员信息</h3>
				<table class="table table-bordered">
					<tr>
						<td>企业（机构）类型</td>
						<td>注册号</td>
						<td>注册资本币种</td>
						<td>企业（机构）名称 </td>
						<td>企业状态</td>
						<td>注册资本（万元）</td>
						<td>职务</td>
						<td>查询人姓名</td>
					</tr>
					<% for(var i in ysBusinessCircles.data.ryposper){  %>
					<tr>
						<td> <%=ysBusinessCircles.data.ryposper[i].eNTTYPE %> </td>
						<td> <%=ysBusinessCircles.data.ryposper[i].rEGNO %> </td>
						<td> <%=ysBusinessCircles.data.ryposper[i].rEGCAPCUR %> </td>
						<td> <%=ysBusinessCircles.data.ryposper[i].eNTNAME %> </td>
						<td> <%=ysBusinessCircles.data.ryposper[i].eNTSTATUS %> </td>
						<td> <%=ysBusinessCircles.data.ryposper[i].rEGCAP %> </td>
						<td> <%=ysBusinessCircles.data.ryposper[i].pOSITION %> </td>
						<td> <%=ysBusinessCircles.data.ryposper[i].rYNAME %> </td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 5、企业股东信息</h3>
				<table class="table table-bordered">
					<% for(var i in ysBusinessCircles.data.rypossha){  %>
					<tr>
						<td>企业（机构）类型</td>
						<td> <%=ysBusinessCircles.data.rypossha[i].eNTTYPE %> </td>
						<td>注册号</td>
						<td> <%=ysBusinessCircles.data.rypossha[i].rEGNO %> </td>
						<td>注册资本币种</td>
						<td> <%=ysBusinessCircles.data.rypossha[i].rEGCAPCUR %> </td>
					</tr>
					<tr>
						<td>企业状态</td>
						<td> <%=ysBusinessCircles.data.rypossha[i].eNTSTATUS %> </td>
						<td>企业（机构）名称</td>
						<td> <%=ysBusinessCircles.data.rypossha[i].eNTNAME %> </td>
						<td>注册资本（万元）</td>
						<td> <%=ysBusinessCircles.data.rypossha[i].rEGCAP %> </td>
					</tr>
					<tr>
						<td>查询人姓名</td>
						<td> <%=ysBusinessCircles.data.rypossha[i].rYNAME %> </td>
						<td>认缴出资币种</td>
						<td> <%=ysBusinessCircles.data.rypossha[i].cURRENCY %> </td>
						<td>认缴出资额（万元）</td>
						<td> <%=ysBusinessCircles.data.rypossha[i].sUBCONAM %> </td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 6、行政处罚历史信息（caseInfo）</h3>
				<table class="table table-bordered">
					<% for(var i in ysBusinessCircles.data.caseInfo){  %>
					<tr>
						<td>案发时间</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].cASETIME %> </td>
						<td>案由</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].cASEREASON %> </td>
						<td>案值</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].cASEVAL %> </td>
					</tr>
					<tr>
						<td>违法行为类型</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].cASETYPE %> </td>
						<td>执行类别</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].eXESORT %> </td>
						<td>案件结果</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].cASERESULT %> </td>
					</tr>
					<tr>
						<td>处罚决定文书</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].pENDECNO %> </td>
						<td>处罚决定书签发日期</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].pENDECISSDATE %> </td>
						<td>作出行政处罚决定机关名称</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].pENAUTH %> </td>
					</tr>
					<tr>
						<td>主要违法事实</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].iLLEGFACT %> </td>
						<td>处罚依据</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].pENBASIS %> </td>
						<td>处罚种类</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].pENTYPE %> </td>
					</tr>
					<tr>
						<td>处罚结果</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].pENRESULT %> </td>
						<td>处罚金额</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].pENAM %> </td>
						<td>处罚执行情况</td>
						<td> <%=ysBusinessCircles.data.caseInfo[i].pENEXEST %> </td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3>7、股东信息</h3>
				<table class="table table-bordered">
					<% for(var i in ysBusinessCircles.data.shareHolder){  %>
					<tr>
						<td>股东名称</td>
						<td> <%=ysBusinessCircles.data.shareHolder[i].SHANAME %> </td>
						<td>认缴出资额（万元）</td>
						<td> <%=ysBusinessCircles.data.shareHolder[i].sUBCONAM %> </td>
						<td>认缴出资币种</td>
						<td> <%=ysBusinessCircles.data.shareHolder[i].rEGCAPCUR %> </td>
					</tr>
					<tr>
						<td>出资方式</td>
						<td> <%=ysBusinessCircles.data.shareHolder[i].cONFORM %> </td>
						<td>出资比例</td>
						<td> <%=ysBusinessCircles.data.shareHolder[i].fUNDEDRATIO %> </td>
						<td>出资日期</td>
						<td> <%=ysBusinessCircles.data.shareHolder[i].cONDATE %> </td>
					</tr>
					<tr>
						<td>国别</td>
						<td> <%=ysBusinessCircles.data.shareHolder[i].cOUNTRY %> </td>
						<td>股东总数量</td>
						<td> <%=ysBusinessCircles.data.shareHolder[i].iNVAMOUNT %> </td>
						<td>股东出资比例总和</td>
						<td> <%=ysBusinessCircles.data.shareHolder[i].iNVSUMFUNDEDRATIO %> 
						</td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 8、被执行人信息 </h3>
				<table class="table table-bordered">
					<% for(var i in ysBusinessCircles.data.punished){  %>
					<tr>
						<td>被执行人姓名/名称</td>
						<td> <%=ysBusinessCircles.data.punished[i].iNAMECLEAN %> </td>
							<td>执行法院</td>
						<td> <%=ysBusinessCircles.data.punished[i].cOURTNAME %> </td>
						<td>立案时间</td>
						<td> <%=ysBusinessCircles.data.punished[i].rEGDATECLEAN %> </td>
						<td>执行标的</td>
						<td> <%=ysBusinessCircles.data.punished[i].eXECMONEY %> </td>					
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 9、法人对外投资信息 </h3>
				<table class="table table-bordered">
					<% for(var i in ysBusinessCircles.data.frinv){  %>
					<tr>
						<td>法定代表人姓名</td>
						<td> <%=ysBusinessCircles.data.frinv[i].nAME %> </td>
						<td>企业（机构）名称</td>
						<td> <%=ysBusinessCircles.data.frinv[i].eNTNAME %> </td>
						<td>注册号</td>
						<td> <%=ysBusinessCircles.data.frinv[i].rEGNO %> </td>
					</tr>
					<tr>
						<td>企业（机构）类型</td>
						<td> <%=ysBusinessCircles.data.frinv[i].eNTTYPE %> </td>
						<td>注册资本（万元）</td>
						<td> <%=ysBusinessCircles.data.frinv[i].rEGCAP %> </td>
						<td>注册资本币种</td>
						<td> <%=ysBusinessCircles.data.frinv[i].rEGCAPCUR %> </td>
					</tr>
					<tr>
						<td>企业状态</td>
						<td> <%=ysBusinessCircles.data.frinv[i].eNTSTATUS %> </td>
						<td>注销日期</td>
						<td> <%=ysBusinessCircles.data.frinv[i].cANDATE %> </td>
						<td>吊销日期</td>
						<td> <%=ysBusinessCircles.data.frinv[i].rEVDATE %> </td>
					</tr>
					<tr>
						<td>登记机关</td>
						<td> <%=ysBusinessCircles.data.frinv[i].rEGORG %> </td>
						<td>认缴出资额（万元）</td>
						<td> <%=ysBusinessCircles.data.frinv[i].sUBCONAM %> </td>
						<td>认缴出资币种</td>
						<td> <%=ysBusinessCircles.data.frinv[i].cURRENCY %> </td>
					</tr>
					<tr>
						<td>出资方式</td>
						<td> <%=ysBusinessCircles.data.frinv[i].cONFORM %> </td>
						<td>出资比例</td>
						<td> <%=ysBusinessCircles.data.frinv[i].fUNDEDRATIO %> </td>
						<td>开业日期</td>
						<td> <%=ysBusinessCircles.data.frinv[i].eSDATE %> </td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 10、变更信息 </h3>
				<table class="table table-bordered">
					<tr>
						<td>变更项目</td>
						<td style="width:45%">变更前内容</td>
						<td style="width:45%">变更后内容</td>
						<td>变更日期</td>
					</tr>
					<% for(var i in ysBusinessCircles.data.alter){  %>
					<tr>
						<td> <%=ysBusinessCircles.data.alter[i].aLTITEM %> </td>
						<td> <%=ysBusinessCircles.data.alter[i].aLTBE %> </td>
						<td> <%=ysBusinessCircles.data.alter[i].aLTAF %> </td>
						<td> <%=ysBusinessCircles.data.alter[i].aLTDATE %> </td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 11、企业对外投资信息</h3>
				<table class="table table-bordered">
					<% for(var i in ysBusinessCircles.data.entinv){  %>
					<tr>
						<td>企业（机构）名称</td>
						<td> <%=ysBusinessCircles.data.entinv[i].eNTNAME %> </td>
						<td>注册号</td>
						<td> <%=ysBusinessCircles.data.entinv[i].rEGNO %> </td>
						<td>企业（机构）类型</td>
						<td> <%=ysBusinessCircles.data.entinv[i].eNTTYPE %> </td>
					</tr>
					<tr>
						<td> 注册资本（万元） </td>
						<td> <%=ysBusinessCircles.data.entinv[i].rEGCAP %> </td>
						<td> 注册资本币种 </td>
						<td> <%=ysBusinessCircles.data.entinv[i].rEGCAPCUR %> </td>
						<td> 企业状态 </td>
						<td> <%=ysBusinessCircles.data.entinv[i].eNTSTATUS %> </td>
					</tr>
					<tr>
						<td> 注销日期 </td>
						<td> <%=ysBusinessCircles.data.entinv[i].cANDATE %> </td>
						<td> 吊销日期 </td>
						<td> <%=ysBusinessCircles.data.entinv[i].rEVDATE %> </td>
						<td> 登记机关 </td>
						<td> <%=ysBusinessCircles.data.entinv[i].rEGORG %> </td>
					</tr>
					<tr>
						<td> 认缴出资额（万元） </td>
						<td> <%=ysBusinessCircles.data.entinv[i].sUBCONAM %> </td>
						<td> 认缴出资币种 </td>
						<td> <%=ysBusinessCircles.data.entinv[i].cONGROCUR %> </td>
						<td> 出资方式  </td>
						<td> <%=ysBusinessCircles.data.entinv[i].cONFORM %> </td>
					</tr>
					<tr>
						<td> 出资比例 </td>
						<td> <%=ysBusinessCircles.data.entinv[i].fUNDEDRATIO %> </td>
						<td> 开业日期 </td>
						<td> <%=ysBusinessCircles.data.entinv[i].eSDATE %> </td>
						<td> 法定法人代表  </td>
						<td> <%=ysBusinessCircles.data.entinv[i].nAME %> </td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 12、法人其他任职信息 </h3>
				<table class="table table-bordered">
					<% for(var i in ysBusinessCircles.data.frposition){  %>
					<tr>
						<td> 法定代表人姓名 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].nAME %> </td>
						<td> 企业（机构）名称 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].eNTNAME %> </td>
						<td> 注册号 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].rEGNO %> </td>
					</tr>
					<tr>
						<td> 企业（机构）类型 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].eNTTYPE %> </td>
						<td> 注册资本（万元）</td>
						<td> <%=ysBusinessCircles.data.frposition[i].rEGCAP %> </td>
						<td> 注册资本币种 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].rEGCAPCUR %> </td>
					</tr>
					<tr>
						<td> 企业状态 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].eNTSTATUS %> </td>
						<td> 注销日期 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].cANDATE %> </td>
						<td> 吊销日期 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].rEVDATE %> </td>
					</tr>
					<tr>
						<td> 登记机关 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].rEGORG %> </td>
						<td> 职务 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].pOSITION %> </td>
						<td> 是否法定代表人  </td>
						<td> <%=ysBusinessCircles.data.frposition[i].lEREPSIGN %> </td>
					</tr>
					<tr>
						<td> 开业日期 </td>
						<td> <%=ysBusinessCircles.data.frposition[i].eSDATE %> </td>
						<td></td>
						<td>  </td>
						<td>   </td>
						<td></td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 13、清算信息 </h3>
				<table class="table table-bordered">
					<% for(var i in ysBusinessCircles.data.liquidation){  %>
					<tr>
						<td> 清算责任人 </td>
						<td> <%=ysBusinessCircles.data.liquidation[i].lIGENTITY %> </td>
						<td> 清算负责人 </td>
						<td> <%=ysBusinessCircles.data.liquidation[i].lIGPRINCIPAL %> </td>
						<td> 清算组成员 </td>
						<td> <%=ysBusinessCircles.data.liquidation[i].lIQMEN %> </td>
					</tr>
					<tr>
						<td> 清算完结情况 </td>
						<td> <%=ysBusinessCircles.data.liquidation[i].lIGST %> </td>
						<td> 清算完结日期 </td>
						<td> <%=ysBusinessCircles.data.liquidation[i].lIGENDDATE %> </td>
						<td> 债务承接人 </td>
						<td> <%=ysBusinessCircles.data.liquidation[i].dEBTTRANEE %> </td>
					</tr>
					<tr>
						<td> 债权承接人 </td>
						<td> <%=ysBusinessCircles.data.liquidation[i].cLAIMTRANEE %> </td>
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 14、企业照面信息 </h3>
				<table class="table table-bordered">
					<% for(var i in ysBusinessCircles.data.basic){  %>
					<tr>
						<td> 企业（机构）名称 </td>
						<td> <%=ysBusinessCircles.data.basic[i].eNTNAME %> </td>
						<td> 注册号 </td>
						<td> <%=ysBusinessCircles.data.basic[i].rEGNO %> </td>
						<td> 原注册号 </td>
						<td> <%=ysBusinessCircles.data.basic[i].oPIREGNO %> </td>
					</tr>
					<tr>
						<td> 法定代表人姓名 </td>
						<td> <%=ysBusinessCircles.data.basic[i].fRNAME %> </td>
						<td> 注册资本（万元） </td>
						<td> <%=ysBusinessCircles.data.basic[i].rEGCAP %> </td>
						<td> 实收资本（万元） </td>
						<td> <%=ysBusinessCircles.data.basic[i].rECCAP %> </td>
					</tr>
					<tr>
						<td> 注册资本币种 </td>
						<td> <%=ysBusinessCircles.data.basic[i].rEGCAPCUR %> </td>
						<td> 企业状态 </td>
						<td> <%=ysBusinessCircles.data.basic[i].eNTSTATUS %> </td>
						<td> 企业（机构）类型 </td>
						<td> <%=ysBusinessCircles.data.basic[i].eNTTYPE %> </td>
					</tr>
					<tr>
						<td> 开业日期 </td>
						<td> <%=ysBusinessCircles.data.basic[i].eSDATE %> </td>
						<td> 经营期限自 </td>
						<td> <%=ysBusinessCircles.data.basic[i].oPFROM %> </td>
						<td> 经营期限至</td>
						<td> <%=ysBusinessCircles.data.basic[i].oPTO %> </td>
					</tr>
					<tr>
						<td> 住址 </td>
						<td> <%=ysBusinessCircles.data.basic[i].dOM %> </td>
						<td> 登记机关 </td>
						<td> <%=ysBusinessCircles.data.basic[i].rEGORG %> </td>
						<td> 许可经营项目</td>
						<td> <%=ysBusinessCircles.data.basic[i].aBUITEM %> </td>
					</tr>
					<tr>
						<td> 一般经营项目 </td>
						<td> <%=ysBusinessCircles.data.basic[i].cBUITEM %> </td>
						<td> 经营（业务）范围 </td>
						<td> <%=ysBusinessCircles.data.basic[i].oPSCOPE %> </td>
						<td> 经营（业务）范围及方式 </td>
						<td> <%=ysBusinessCircles.data.basic[i].oPSCOANDFORM %> </td>
					</tr>
					<tr>
						<td> 最后年检年度 </td>
						<td> <%=ysBusinessCircles.data.basic[i].aNCHEYEAR %> </td>
						<td> 注销日期 </td>
						<td> <%=ysBusinessCircles.data.basic[i].cANDATE %> </td>
						<td> 吊销日期 </td>
						<td> <%=ysBusinessCircles.data.basic[i].rEVDATE %> </td>
					</tr>
					<tr>
						<td> 最后年检日期 </td>
						<td> <%=ysBusinessCircles.data.basic[i].aNCHEDATE %> </td>
						<td> 行业门类代码 </td>
						<td> <%=ysBusinessCircles.data.basic[i].iNDUSTRYPHYCODE %> </td>
						<td> 国民经济行业代码 </td>
						<td> <%=ysBusinessCircles.data.basic[i].iNDUSTRYCOCODE %> </td>
					</tr>
					<tr>
						<td> 变更日期 </td>
						<td> <%=ysBusinessCircles.data.basic[i].cHANGEDATE %> </td>
						<td> 注册地址行政区编码 </td>
						<td> <%=ysBusinessCircles.data.basic[i].rEGORGCODE %> </td>
						<td> 注册省份 </td>
						<td> <%=ysBusinessCircles.data.basic[i].rEGORGPROVINCE %> </td>
					</tr>
					<tr>
						<td> 行业门类代码及名称 </td>
						<td> <%=ysBusinessCircles.data.basic[i].iNDUSTRYPHYNAME %> </td>
						<td> 国民经济行业代码及名称 </td>
						<td> <%=ysBusinessCircles.data.basic[i].iNDUSTRYCONAME %> </td>
					
					</tr>
					<% } %>
				</table>
			</div>
			
			<div>
				<h3> 15、失信被执行人信息 </h3>
				<% for(var i in ysBusinessCircles.data.punishbreak){  %>
				<table class="table table-bordered">
					<tr>
						<td> 案号 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].cASECODE %> </td>
						<td> 被执行人姓名/名称 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].iNAMECLEAN %> </td>
						<td> 失信人类型 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].tYPE %> </td>
					</tr>
					<tr>
						<td> 性别 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].sEXYCLEAN %> </td>
						<td> 身份证原始发证地 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].ySFZD %> </td>
						<td> 身份证号码/工商注册号 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].cARDNUM %> </td>
					</tr>
					<tr>
						<td> 被执行人的履行情况</td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].pERFORMANCE %> </td>
						<td> 法定代表人/负责人姓名 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].bUSINESSENTITY %> </td>
						<td> 立案时间 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].rEGDATECLEAN %> </td>
					</tr>
					
					<tr>
						<td> 公布时间 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].pUBLISHDATECLEAN %> </td>
						<td> 执行法院 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].cOURTNAME %> </td>
						<td> 省份 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].aREANAMECLEAN %> </td>
					</tr>
					<tr>
						<td> 执行依据文号 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].gISTID %> </td>
						<td> 做出执行依据单位 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].gISTUNIT %> </td>
						<td> 生效法律文书确定的义务</td>
						<td style="width:40%"> <%=ysBusinessCircles.data.punishbreak[i].dUTY %> </td>
					</tr>
					<tr>
						<td> 失信被执行人行为具体情形</td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].dISRUPTTYPENAME %> </td>
							<td> 未履行 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].uNPERFORMPART %> </td>
			
						<td> 已履行 </td>
						<td> <%=ysBusinessCircles.data.punishbreak[i].pERFORMEDPART %> </td>
					</tr>
				</table>
				<% } %>
			</div>
			
			<div>
				<h3> 16、股权冻结历史信息 </h3>
				<% for(var i in ysBusinessCircles.data.sharesFrost){  %>
				<table class="table table-bordered">
					<tr>
						<td> 冻结文号 </td>
						<td> <%=ysBusinessCircles.data.sharesFrost[i].fRODOCNO %> </td>
						<td>冻结机关</td>
						<td> <%=ysBusinessCircles.data.sharesFrost[i].fROAUTH %> </td>
						<td> 冻结起始日期 </td>
						<td> <%=ysBusinessCircles.data.sharesFrost[i].fROFROM %> </td>
					</tr>
					<tr>
						<td> 冻结截至日期 </td>
						<td> <%=ysBusinessCircles.data.sharesFrost[i].fROTO %> </td>
						<td> 冻结金额 </td>
						<td> <%=ysBusinessCircles.data.sharesFrost[i].fROAM %> </td>
						<td> 解冻机关</td>
						<td> <%=ysBusinessCircles.data.sharesFrost[i].tHAWAUTH %> </td>
					</tr>
					<tr>
						<td> 解冻文号 </td>
						<td> <%=ysBusinessCircles.data.sharesFrost[i].tHAWDOCNO %> </td>
						<td> 解冻日期 </td>
						<td> <%=ysBusinessCircles.data.sharesFrost[i].tHAWDATE %> </td>
						<td> 解冻说明 </td>
						<td> <%=ysBusinessCircles.data.sharesFrost[i].tHAWCOMMENT %> </td>
					</tr>
				</table>
				<% } %>
			</div>
			
			<div>
				<h3> 17、行政处罚历史信息（personCaseInfo） </h3>
				<% for(var i in ysBusinessCircles.data.personCaseInfo){  %>
				<table class="table table-bordered">
					
					<tr>
						<td> 执行类别 </td>
						<td> <%=ysBusinessCircles.data.personCaseInfo[i].eXESORT %> </td>
						<td>处罚决定文书</td>
						<td> <%=ysBusinessCircles.data.personCaseInfo[i].pENDECNO %> </td>
						<td> 处罚决定书签发日期 </td>
						<td> <%=ysBusinessCircles.data.personCaseInfo[i].pENDECISSDATE %> </td>
					</tr>
					<tr>
						<td> 作出行政处罚决定机关名称 </td>
						<td> <%=ysBusinessCircles.data.personCaseInfo[i].pENAUTH %> </td>
						<td> 处罚依据 </td>
						<td> <%=ysBusinessCircles.data.personCaseInfo[i].pENBASIS %> </td>
						<td> 处罚种类</td>
						<td> <%=ysBusinessCircles.data.personCaseInfo[i].pENTYPE %> </td>
					</tr>
					<tr>
						<td> 处罚结果 </td>
						<td> <%=ysBusinessCircles.data.personCaseInfo[i].pENRESULT %> </td>
						<td> 处罚金额 </td>
						<td> <%=ysBusinessCircles.data.personCaseInfo[i].pENAM %> </td>
						<td> 处罚执行情况 </td>
						<td> <%=ysBusinessCircles.data.personCaseInfo[i].pENEXEST %> </td>
					</tr>
				</table>
				<% } %>
			</div>
			
			<div>
				<h3> 18、动产抵押物信息 </h3>
				<% for(var i in ysBusinessCircles.data.morguaInfo){  %>
				<table class="table table-bordered">
					<tr>
						<td> 抵押ID </td>
						<td> <%=ysBusinessCircles.data.morguaInfo[i].mORREG_ID %> </td>
						<td>抵押物名称</td>
						<td> <%=ysBusinessCircles.data.morguaInfo[i].gUANAME %> </td>
						<td> 数量 </td>
						<td> <%=ysBusinessCircles.data.morguaInfo[i].qUAN %> </td>
					</tr>
					<tr>
						<td> 价值（万元） </td>
						<td> <%=ysBusinessCircles.data.morguaInfo[i].vALUE %> </td>
						<td>  </td>
						<td>   </td>
						<td> </td>
						<td>   </td>
					</tr>
				</table>
				<% } %>
			</div>
			
			<div>
				<h3> 19、动产抵押信息 </h3>
				<% for(var i in ysBusinessCircles.data.mordetail){  %>
				<table class="table table-bordered">
					<tr>
						<td> 抵押ID </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].mORREG_ID %> </td>
						<td>抵押人</td>
						<td> <%=ysBusinessCircles.data.mordetail[i].mORTGAGOR %> </td>
						<td> 抵押权人 </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].mORE %> </td>
					</tr>
					<tr>
						<td> 登记机关 </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].rEGORG %> </td>
						<td> 登记日期 </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].rEGIDATE %> </td>
						<td> 状态标识</td>
						<td> <%=ysBusinessCircles.data.mordetail[i].mORTYPE %> </td>
					</tr>
					<tr>
						<td> 登记证号 </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].mORREGCNO %> </td>
						<td> 申请抵押原因 </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].aPPREGREA %> </td>
						<td> 被担保主债权类型 </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].pRICLASECKIND %> </td>
					</tr>
					<tr>
						<td> 被担保主债权数额（万元） </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].pRICLASECAM %> </td>
						<td> 履约起始日期 </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].pEFPERFORM %> </td>
						<td> 履约截止日期 </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].pEFPERTO %> </td>
					</tr>
					<tr>
						<td> 注销日期 </td>
						<td> <%=ysBusinessCircles.data.mordetail[i].cANDATE %> </td>
						<td>   </td>
						<td>  </td>
						<td>    </td>
						<td>   </td>
					</tr>
				</table>
				<% } %>
			</div>
			
			<div>
				<h3> 20、分支机构信息 </h3>
					<% for(var i in ysBusinessCircles.data.filiation  ){  %>
				<table class="table table-bordered">
					
					<tr>
						<td> 分支机构名称 </td>
						<td> <%=ysBusinessCircles.data.filiation[i].bRNAME %> </td>
						<td>分支机构企业注册号</td>
						<td> <%=ysBusinessCircles.data.filiation[i].bRREGNO %> </td>
						<td> 分支机构负责人 </td>
						<td> <%=ysBusinessCircles.data.filiation[i].bRPRINCIPAL %> </td>
					</tr>
					<tr>
						<td>一般经营项目 </td>
						<td> <%=ysBusinessCircles.data.filiation[i].cBUITEM %> </td>
						<td> 分支机构地址 </td>
						<td> <%=ysBusinessCircles.data.filiation[i].bRADDR %> </td>
						<td> </td>
						<td>   </td>
					</tr>
					
				</table>
				<% } %>
			</div>
</script>
			<script type="text/html" id="companyRiskProfile">
			<h2> B-401企业涉法涉诉信息查询  </h2>
			<div>
				<%  for(var i in companyRiskProfile.cpws.data  ){   %>
					<%  for(var j in companyRiskProfile.cpws.data[i].cpwsData  ){   %>
				<table class="table table-bordered ">
						<tr>
						<td rowspan="6">1 裁判文书</td>
						<td> 裁判文书ID  </td>
						<td colspan="7"> <%=companyRiskProfile.cpws.data[i].cpwsData[j].cpwsId %>  </td>
					</tr>
					<tr>
						<td> </td>
						<td>  </td>
						<td> 案号 </td>
						<td> <%=companyRiskProfile.cpws.data[i].cpwsData[j].caseNo %> </td>
						<td> 案由 </td>
						<td> <%=companyRiskProfile.cpws.data[i].cpwsData[j].caseCause %> </td>
						<td> 文书类型 </td>
						<td> <%=companyRiskProfile.cpws.data[i].cpwsData[j].caseType %> </td>
					</tr>
					<tr>
						<td> 判决结果 </td>
						<td> <%=companyRiskProfile.cpws.data[i].cpwsData[j].judgeResult %> </td>
						<td> 法院名称 </td>
						<td> <%=companyRiskProfile.cpws.data[i].cpwsData[j].court %> </td>
						<td> 审判员 </td>
						<td> <%=companyRiskProfile.cpws.data[i].cpwsData[j].judge %> </td>
						<td> 审结时间 </td>
						<td> <%=dateFormat(companyRiskProfile.cpws.data[i].cpwsData[j].sortTime) %> </td>
					</tr>
					<tr>
						<td> 审理程序 </td>
						<td colspan="7"> <%=companyRiskProfile.cpws.data[i].cpwsData[j].trialProcedure %></td>
					</tr>
					<tr>
						<td> 标题 </td>
						<td colspan="7"> <%=companyRiskProfile.cpws.data[i].cpwsData[j].title %> </td>
					</tr>
					<tr>
						<td> 内容 </td>
						<td colspan="7"> <%=companyRiskProfile.cpws.data[i].cpwsData[j].body %> </td>
					
				
					</tr>
							 <% for(var k in companyRiskProfile.cpws.data[i].cpwsData[j].anliPartysList ){  %> 
					<tr>
						<td></td>
						<td>当事人名称</td>
						<td> <%=companyRiskProfile.cpws.data[i].cpwsData[j].anliPartysList[k].pname %> </td>
						<td>当事人身份证号码</td>
						<td> <%=companyRiskProfile.cpws.data[i].cpwsData[j].anliPartysList[k].idcardNo %> </td>
						<td>当事人类型</td>
						<td> <%=companyRiskProfile.cpws.data[i].cpwsData[j].anliPartysList[k].partytype %> </td>
						<td>当事人生日</td>
						<td><%=companyRiskProfile.cpws.data[i].cpwsData[j].anliPartysList[k].birthday %></td>
					</tr>
					<tr>
						<td> </td>
						<td>当事人立场</td>
						<td><%=companyRiskProfile.cpws.data[i].cpwsData[j].anliPartysList[k].status %></td>
						<td>律师事务所</td>
						<td><%=companyRiskProfile.cpws.data[i].cpwsData[j].anliPartysList[k].lawOffice %></td>
						<td>委托辩护人</td>
						<td><%=companyRiskProfile.cpws.data[i].cpwsData[j].anliPartysList[k].lawyer %></td>
						<td>当事人称号</td>
						<td><%=companyRiskProfile.cpws.data[i].cpwsData[j].anliPartysList[k].title %></td>
						<td></td>
						<td></td>
					</tr>
					<% } %>
				</table>
			<% } } %>

			
				<table class="table table-bordered">
				<%  for(var i in companyRiskProfile.zxgg.data  ){   %>
				<%  for(var k in companyRiskProfile.zxgg.data[i].zxggData  ){   %>
					<tr>
						<td rowspan="5">2、执行公告</td>
						<td> 执行公告ID  </td>
						<td colspan="7"> <%=companyRiskProfile.zxgg.data[i].zxggData[k].zxggId %> </td>
					</tr>
					<tr>
						<td> 被执行人姓名</td>
						<td> <%=companyRiskProfile.zxgg.data[i].zxggData[k].pname %>  </td>
						<td> 身份证号/组织机构代码 </td>
						<td> <%=companyRiskProfile.zxgg.data[i].zxggData[k].idcardNo %>  </td>
						<td> 执行标的 </td>
						<td> <%=companyRiskProfile.zxgg.data[i].zxggData[k].execMoney %>  </td>
						<td> 执行状态 </td>
						<td> <%=companyRiskProfile.zxgg.data[i].zxggData[k].status %>  </td>
					</tr>
					<tr>
						<td> 案号 </td>
						<td> <%=companyRiskProfile.zxgg.data[i].zxggData[k].caseNo %>  </td>
						<td> 立案时间 </td>
						<td> <%=dateFormat(companyRiskProfile.zxgg.data[i].zxggData[k].sortTime) %>  </td>
						<td> 案件状态 </td>
						<td> <%=companyRiskProfile.zxgg.data[i].zxggData[k].caseState %>  </td>
						<td> 执行法院 </td>
						<td> <%=companyRiskProfile.zxgg.data[i].zxggData[k].court %>  </td>
					</tr>
					<tr>
						<td> 标题 </td>
						<td colspan="7"> <%=companyRiskProfile.zxgg.data[i].zxggData[k].title %> </td>
					</tr>
					<tr>
						<td> 内容 </td>
						<td colspan="7"> <%=companyRiskProfile.zxgg.data[i].zxggData[k].body %>  </td>
					</tr>
				<% } }%>

				<%  for(var i in companyRiskProfile.sxgg.data  ){   %>
				<%  for(var k in companyRiskProfile.sxgg.data[i].sxggData  ){   %>
					<tr>
						<td rowspan="6"> 3、失信公告 </td>
						<td> 失信公告ID  </td>
						<td colspan="7"> <%=companyRiskProfile.sxgg.data[i].sxggData[k].sxggId %> </td>
					</tr>
					<tr>
						<td> 被执行人姓名</td>
						<td> <%=companyRiskProfile.sxgg.data[i].sxggData[k].pname %>  </td>
						<td> 身份证号/组织机构代码 </td>
						<td> <%=companyRiskProfile.sxgg.data[i].sxggData[k].idcardNo %>  </td>
						<td> 性别 </td>
						<td> <%=companyRiskProfile.sxgg.data[i].sxggData[k].sex %>  </td>
						<td> 年龄 </td>
						<td> <%=companyRiskProfile.sxgg.data[i].sxggData[k].age %>  </td>
					</tr>
					<tr>
						<td> 立案时间 </td>
						<td> <%=dateFormat(companyRiskProfile.sxgg.data[i].sxggData[k].sortTime) %>  </td>
						<td> 执行依据文号 </td>
						<td> <%=companyRiskProfile.sxgg.data[i].sxggData[k].yjCode %>  </td>
						<td> 做出执行依据单位 </td>
						<td> <%=companyRiskProfile.sxgg.data[i].sxggData[k].yjdw %>  </td>
						<td> 执行法院 </td>
						<td> <%=companyRiskProfile.sxgg.data[i].sxggData[k].court %>  </td>
					</tr>
					<tr>
						<td> 发布时间 </td>
						<td> <%=companyRiskProfile.sxgg.data[i].sxggData[k].postTime %>  </td>
						<td > 省份 </td>
						<td colspan="5"> <%=companyRiskProfile.sxgg.data[i].sxggData[k].province %>  </td>
					</tr>
					<tr>
						<td> 生效法律文书确定的义务 </td>
						<td colspan="7"><%=companyRiskProfile.sxgg.data[i].sxggData[k].yiwu %>  </td>
					</tr>
					<tr>
						<td> 失信被执行人具体行为情况 </td>
						<td colspan="7"> <%=companyRiskProfile.sxgg.data[i].sxggData[k].jtqx %>  </td>
					</tr>
				<% } }%>
				<%  for(var i in companyRiskProfile.ktgg.data   ){   %>
					<%  for(var k in companyRiskProfile.ktgg.data[i].ktggData   ){   %>
					<tr>
						<td rowspan="5">4、开庭公告</td>
						<td> 开庭公告ID  </td>
						<td colspan="7"> <%=companyRiskProfile.ktgg.data[i].ktggData[k].ktggId %> </td>
					</tr>
					<tr>
						<td> 案号</td>
						<td> <%=companyRiskProfile.ktgg.data[i].ktggData[k].caseNo %>  </td>
						<td> 案由</td>
						<td> <%=companyRiskProfile.ktgg.data[i].ktggData[k].caseCause %>  </td>
						<td> 立案时间 </td>
						<td> <%=dateFormat(companyRiskProfile.ktgg.data[i].ktggData[k].sortTime) %>  </td>
						<td> 法院名称 </td>
						<td>  <%=companyRiskProfile.ktgg.data[i].ktggData[k].court %> </td>
					</tr>
					<tr>
						<td> 当事人 </td>
						<td> <%=companyRiskProfile.ktgg.data[i].ktggData[k].party %>  </td>
						<td> 原告 </td>
						<td> <%=companyRiskProfile.ktgg.data[i].ktggData[k].paintiff %>  </td>
						<td> 被告 </td>
						<td> <%=companyRiskProfile.ktgg.data[i].ktggData[k].defendant %>  </td>
						<td> 法官 </td>
						<td> <%=companyRiskProfile.ktgg.data[i].ktggData[k].judge %>  </td>
					</tr>
					<tr>
						<td> 标题 </td>
						<td colspan="7"><%=companyRiskProfile.ktgg.data[i].ktggData[k].title %>  </td>
					</tr>
					<tr>
						<td> 内容 </td>
						<td colspan="7"> <%=companyRiskProfile.ktgg.data[i].ktggData[k].body %>  </td>
					</tr>
				<% } }%>
				<%  for(var i in companyRiskProfile.fygg.data  ){   %>
					<%  for(var k in companyRiskProfile.fygg.data[i].fyggData   ){   %>
					<tr>
						<td rowspan="2">5、法院公告</td>
						<td> 发布时间</td>
						<td> <%=dateFormat(companyRiskProfile.fygg.data[i].fyggData[k].sortTime) %> </td>
						<td> 当事人 </td>
						<td> <%=companyRiskProfile.fygg.data[i].fyggData[k].pname %> </td>
						<td> 公告类型 </td>
						<td> <%=companyRiskProfile.fygg.data[i].fyggData[k].ggType %> </td>
						<td> 法院名称 </td>
						<td> <%=companyRiskProfile.fygg.data[i].fyggData[k].court %> </td>
					</tr>
					<tr>
						<td> 内容 </td>
						<td colspan="7"> <%=companyRiskProfile.fygg.data[i].fyggData[k].body %> </td>
					</tr>
				<% } }%>

				<%  for(var i in companyRiskProfile.wdhmd.data ){   %>
					<%  for(var k in companyRiskProfile.wdhmd.data[i].wdhmdData   ){   %>
					<tr>
						<td rowspan="4">6、网贷黑名单</td>
						<td> 网贷黑名单ID  </td>
						<td colspan="7"> <%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].wdhmdId %> </td>
					</tr>
					<tr>
						<td> 姓名</td>
						<td> <%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].pname %> </td>
						<td> 身份证号</td>
						<td> <%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].idcardNo %> </td>
						<td> 性别 </td>
						<td> <%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].sex %> </td>
						<td> 年龄 </td>
						<td> <%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].age %> </td>
					</tr>
					<tr>
						<td> 手机号 </td>
						<td> <%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].mobile %> </td>
						<td> 邮箱地址 </td>
						<td>  <%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].email %></td>
						<td> 籍贯地址 </td>
						<td> <%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].birthPlace %> </td>
						<td> 居住电话 </td>
						<td> <%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].phone %> </td>
					</tr>
					<tr>
						<td> 居住地址 </td>
						<td colspan="7"><%=companyRiskProfile.wdhmd.data[i].wdhmdData[k].address %> </td>
					</tr>
				<% } }%>
				<%  for(var i in companyRiskProfile.ajlc.data ){   %>
					<%  for(var k in companyRiskProfile.ajlc.data[i].ajlcData ){   %>
					<tr>
						<td rowspan="5">7、案件流程</td>
						<td> 案件流程ID  </td>
						<td colspan="7"> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].ajlcId %> </td>
					</tr>
					<tr>
						<td> 案号</td>
						<td> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].caseNo %> </td>
						<td> 立案时间</td>
						<td> <%=dateFormat(companyRiskProfile.ajlc.data[i].ajlcData[k].sortTime) %> </td>
						<td> 案由 </td>
						<td> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].caseCause %> </td>
						<td> 案件类别 </td>
						<td> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].caseType %> </td>
					</tr>
					<tr>
						<td> 当事人 </td>
						<td style="width:20%"> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].pname %> </td>
						<td> 诉讼标的 </td>
						<td> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].actionObject %> </td>
						<td> 法院名称 </td>
						<td> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].court %> </td>
						<td> 主审法官 </td>
						<td> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].jdge %> </td>
					</tr>
					<tr>
						<td> 审理程序 </td>
						<td> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].trialProcedure %> </td>
						<td> 法庭成员 </td>
						<td> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].member %> </td>
						<td> 书记员 </td>
						<td> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].clerk %> </td>
						<td>  </td>
						<td>  </td>
					</tr>
					<tr>
						<td> 内容 </td>
						<td colspan="7"> <%=companyRiskProfile.ajlc.data[i].ajlcData[k].body %> </td>
					</tr>
					<% } }%>
				</table>
			</div>
</script>
			<script type="text/html" id="ccorpAccountCheck">
			<h2> B-5: 企业帐号认证 </h2>
			<div>
				<table class="table table-bordered">

					<tr>
						<td rowspan="2">输入</td>
						<td>对公帐号名称</td>
						<td>  </td>
						<td> 身份证号  </td>
						<td>  </td>
					</tr>
					<tr>
						<td> 银联机构号 </td>
						<td colspan="3">  </td>
					</tr>
					<tr>
						<td rowspan="3">输出</td>
						<td> 银行卡号 </td>
						<td> <%=ccorpAccountCheck.data.card %> </td>
						<td> 企业名称 </td>
						<td> <%=ccorpAccountCheck.data.name %> </td>
					</tr>
					<tr>
						<td>银联机构号</td>
						<td colspan="3"> <%=ccorpAccountCheck.data.bankCode %> </td>
					</tr>
					<tr>
						<td>应答码描述</td>
						<td> <%=ccorpAccountCheck.data.respDesc %> </td>
						<td>应答码</td>
						<td> <%=ccorpAccountCheck.data.respCode %> </td>
					</tr>
				</table>
			</div>
</script>
			<script type="text/html" id="corpTradeReport">
			<h2> B-6：企业POS交易报告（6个月） </h2>
			<div>
				<table class="table table-bordered">

					<tr>
						<td colspan="2">输入</td>
						<td > 企业名称 </td>
						<td colspan="4"><%=comName%></td>
					</tr>
					<tr>
						<td rowspan="35">输出</td>
						<td rowspan="5">1、核心经营指标</td>
						<td> 首次交易日期 </td>
						<td> <%=corpTradeReport.data.indexCore.firstTransDate  %> </td>
						<td> 交易总人数</td>
						<td> <%=corpTradeReport.data.indexCore.transPersonCount  %> </td>
						<td> </td>
					</tr>
					<tr>
						<td> 交易总金额 </td>
						<td> <%=corpTradeReport.data.indexCore.transAmountTotal  %></td>
						<td> 交易总笔数 </td>
						<td> <%=corpTradeReport.data.indexCore.transCount  %> </td>
						<td> </td>
					</tr>
					<tr>
						<td> 周均交易金额 </td>
						<td> <%=corpTradeReport.data.indexCore.weekTransAmountAvg  %></td>
						<td> 周均交易笔数 </td>
						<td><%=corpTradeReport.data.indexCore.weekTransCountAvg  %> </td>
						<td> </td>
					</tr>
					<tr>
						<td> 笔单价 </td>
						<td> <%=corpTradeReport.data.indexCore.countPrice  %></td>
						<td> 客单价 </td>
						<td> <%=corpTradeReport.data.indexCore.personPrice  %> </td>
						<td> </td>
					</tr>
					<tr>
						<td> 月均交易笔数 </td>
						<td colspan="4">   </td>
					</tr>
					
					<tr>
						<td rowspan="4"> 2、经营稳定性指标 </td>
						<td> 低于周均交易金额的次数 </td>
						<td> <%=corpTradeReport.data.indexStability.weekLowThanAvgCount  %> </td>
						<td> 最近的连续低于周均交易金额</td>
						<td> <%=corpTradeReport.data.indexStability.weekLatelyLowThanAvgCount  %></td>
						<td> </td>
					</tr>
					<tr> 
						<td> 交易额峰值常见旬</td>
						<td><%=corpTradeReport.data.indexStability.transAmountHighestTendays  %></td>
						<td> 周交易额中值 </td>
						<td><%=corpTradeReport.data.indexStability.weekTransAmountMedian  %> </td>
						<td> </td>
					</tr>
					<tr> 
						<td> 周均交易金额变异系数</td>
						<td><%=corpTradeReport.data.indexStability.weekTransAmountAvgCv  %></td>
						<td> 变异系周均交易笔数 </td>
						<td> <%=corpTradeReport.data.indexStability.weekTransCountAvgCv  %></td>
						<td> </td>
					</tr>
					<tr>
						<td>变异系月均交易天数</td>
						<td colspan="4"><%=corpTradeReport.data.indexStability.monthTransDaysAvgCv  %></td>
						
					</tr>
					
					<tr>
						<td rowspan="6">3、异常交易指标</td>
						<td>反向交易金额 </td>
						<td><%=corpTradeReport.data.indexAbnormal.reverseTransAmount  %></td>
						<td>交易金额前五客户的占比 </td>
						<td><%=corpTradeReport.data.indexAbnormal.reverseTransCount  %></td>
						<td> </td>
					</tr>
					<tr> 
						<td> 反向交易笔数</td>
						<td><%=corpTradeReport.data.indexAbnormal.top5TransAmountProp  %></td>
						<td> 交易金额前五客户的笔数占比 </td>
						<td> <%=corpTradeReport.data.indexAbnormal.top5TransCountProp  %></td>
						<td> </td>
					</tr>
					<tr> 
						<td> 贷记卡的交易总金额</td>
						<td><%=corpTradeReport.data.indexAbnormal.creditCardTransAmount  %></td>
						<td> 贷记卡的交易总笔数 </td>
						<td><%=corpTradeReport.data.indexAbnormal.creditCardTransCount  %> </td>
						<td> </td>
					</tr>
					<tr> 
						<td> 借记卡的交易总金额</td>
						<td><%=corpTradeReport.data.indexAbnormal.debitCardTransAmount  %></td>
						<td> 借记卡的交易总笔数 </td>
						<td><%=corpTradeReport.data.indexAbnormal.debitCardTransCount  %> </td>
						<td> </td>
					</tr>
					<tr> 
						<td> 非正常时间的交易总金额</td>
						<td><%=corpTradeReport.data.indexAbnormal.abnormalTimeTransAmount  %></td>
						<td> 非正常时间的交易总笔数 </td>
						<td> <%=corpTradeReport.data.indexAbnormal.abnormalTimeTransCount  %></td>
						<td> </td>
					</tr>
					<tr> 
						<td> 交易失败金额</td>
						<td><%=corpTradeReport.data.indexAbnormal.transFailedAmount  %></td>
						<td> 交易失败笔数 </td>
						<td> <%=corpTradeReport.data.indexAbnormal.transFailedCount  %></td>
						<td> </td>
					</tr>
					
					<tr>
						<td rowspan="2"> 4、经营变化趋势 </td>
						<td> 交易金额周均增长率</td>
						<td> <%=corpTradeReport.data.indexChange.weekTransAmountGrowthRate  %> </td>
						<td> 交易笔数周均增长率</td>
						<td><%=corpTradeReport.data.indexChange.weekTransCountGrowthRate  %></td>
						<td> </td>
					</tr>
					<tr> 
						<td> 每周交易金额</td>
						<td><%=corpTradeReport.data.indexChange.weekTransAmounts  %></td>
						<td> 每周交易笔数 </td>
						<td> <%=corpTradeReport.data.indexChange.weekTransCounts  %></td>
						<td> </td>
					</tr>
			</table>
				<table class="table table-bordered">
						<center> <h3>5、本市同行业对比 </h3></center>
					<tr>
						<td> 月份</td>
						<td>月交易金额</td>
						<td>月交易笔数</td>
						<td>月交易金额在本市同行业的排名</td>
						<td>月交易笔数在本市同行业的排名</td>
					</tr>
					
				<%
					var icKeyArray=[];
					for (var prop in corpTradeReport.data.indexContrast) {
						icKeyArray.push(prop);
					}
					var icKeyNewArray= icKeyArray.sort(function(first,second){
						return first>second;
					})
					for (var i=0;i<icKeyNewArray.length;i++){
						var prop=icKeyNewArray[i];
					if(prop=="0"){} else{ %>
					<tr>
					<td><%=prop%></td>
					<td><%=corpTradeReport.data.indexContrast[prop].monthAmount%></td>
					<td><%=corpTradeReport.data.indexContrast[prop].monthCount%></td>
					<td><%=corpTradeReport.data.indexContrast[prop].monthAmountRank%></td>
					<td><%=corpTradeReport.data.indexContrast[prop].monthCountRank%></td></tr>				
				<%} }%>
				</table>
				<table class="table table-bordered">
						<center> <h3> 6、客户地域分布</h3></center>
					<tr>
						
						<td> 客户类型</td>
						<td>金额占比 </td>
						<td colspan="2">交易笔数占比 </td>
						<td colspan="2">交易人数占比 </td>
					</tr>
					<% for(var i in corpTradeReport.data.indexArea) {%>
					<tr>
						<td> <%=corpTradeReport.data.indexArea[i].customerType %></td>
						<td> <%=corpTradeReport.data.indexArea[i].amountProp %> </td>
						<td colspan="2"> <%=corpTradeReport.data.indexArea[i].countProp %> </td>
						<td colspan="2"> <%=corpTradeReport.data.indexArea[i].personProp %> </td>
					</tr>
					<% } %>
			</table>
			<table class="table table-bordered">
					<center> <h3>7、客户忠诚度分布 </h3> </center>
					<tr>
						<td> 客户类型</td>
						<td>金额占比 </td>
						<td >交易笔数占比 </td>
						<td >交易人数占比 </td>
					</tr>
					<% for(var i in corpTradeReport.data.indexLoyalty) {%>
					<tr>
						<td> <%=corpTradeReport.data.indexLoyalty[i].customerType %></td>
						<td> <%=corpTradeReport.data.indexLoyalty[i].amountProp %> </td>
						<td ><%=corpTradeReport.data.indexLoyalty[i].countProp %></td>
						<td><%=corpTradeReport.data.indexLoyalty[i].personProp %></td>
					</tr>
					<% } %>
				</table>
				<table class="table table-bordered">
						<center> <h3>8、还款能力区间</h3> </center>
					<tr>
						<td> 还款能力(单位:万元) </td>
						<td style="width:70%"> <%=corpTradeReport.data.repaymentAbility %> </td>
					</tr>
				</table>
				
			</div>
		</div>
</script>
	</div>
	<div id="zero"></div>
	</center>
</div>
	<script src="dataTpl.js"></script>
	<script src="pjb.js"></script>
	<script src="js/jquery.params.js"></script>
	<script>
		function Submitdata() {
			var comName = $("#comName").val();
			var keyType = $("#keyType").val();
			var companRiskProfileType = $("#companRiskProfileType").val();
			var card = $("#card").val();
			var bankCode = $("#bankCode").val();
			var amount = $("#amount").val();
			var idList = $("#idlist").val()+$("#idgg").val();
			var selectInterface = checkval();
			var userid = $.query.get("userid");
	
			template.helper("dateFormat", function(str, new_str) {
				if (str == "") {
					new_str = " ";
				} else {
					var longTime = parseInt(str);
					new_str = getSmpFormatDate(new Date(longTime), false);
				}
				return new_str;
			});

			$.ajax({
						type : "post",
						url : "/api/v1/companyExport/json/",
						data:{"comName":comName,"keyType":keyType,"card":card,"bankCode":bankCode,"amount":amount,"selectInterface":selectInterface,"idList":idList,"userid":userid},
						success : function(datas) {
							var data = $.parseJSON(datas);
							console.log( data.companyRiskProfile );
							var datatmp = p_extend(param, data);
							var selectface = checkval2();

							for (var i = 0; i < selectface.length; i++) {
								if(selectface[i]=="ccorpIdList"){
									var html = template("companyRiskProfile", datatmp);
									document.getElementById("p_companyRiskProfile").innerHTML = html;
								}else{
									var html = template(selectface[i], datatmp);
									document.getElementById("p_" + selectface[i]).innerHTML = html;
								}
								

							}
							document.getElementById('inputs').innerHTML = "";
						}
					});

		}

	</script>

</body>
</html>

